home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11128 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.6 KB  |  73 lines

  1. Newsgroups: comp.lang.c++
  2. Path: uu4news.netcom.com!amc-gw!curtis
  3. From: curtis@amc.com (Curtis Green)
  4. Subject: Re: Will JAVA kill C++?
  5. Message-ID: <1996Mar12.155442.1839@amc.com>
  6. Organization: Applied Microsystems Corporation
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. References: <31426210.1244@bhp.com.au>
  9. Date: Tue, 12 Mar 1996 15:54:42 GMT
  10.  
  11. : True Java doesn't use pointers, it uses references.  But reference can do 
  12. : anything a pointer can do, and it has the advantage of never pointing to 
  13. Not quite.  A reference is an alias to some variable and behaves the same
  14. way.  A pointer can point to any memory that you want, any where that you
  15. want.  That means to variables, functions, or the stack if you are so
  16. inclined (although you will end up platform specific if you point to the
  17. stack).
  18. : NULL or a deleted object or rubbish that causes a memory access violation.
  19. : Using references instead of pointers certainly has no disadvantage.
  20. In an embedded application there is a lot of pointer usage.  I could not
  21. do a lot of things with references that I can do with pointers.  However,
  22. I use references where I can for safety sake and it is needed for operator
  23. overloading (which is missing from JAVA :( ).  From the reading I have done 
  24. on JAVA, they have removed alot of the C++ advanced features which makes C++
  25. attractive to advanced programmers.
  26. : run just as fast as C++.  Java code will be more reliable and robust than
  27. : C++ due to garbage collection and a stripped down vocabulary.  And like 
  28. code reliablity is more a function of programmer ability than language
  29. features.  I agree that C++ is woefully missing garbage collection but
  30. you can pick up class libraries with those features.  A lousy programmer can
  31. write lousy programs in any language.
  32. : you said, it is a platform independant open standard API so that you can be
  33. : confident that any program that you write can run on any PC/Workstation or 
  34. : in the future PDA/watch/toaster whatever.  Companies can develop code with
  35. You still need the underlying interpreter or development platform which will
  36. take a hit with different platforms and new OS.  The PDA/watch/toaster will
  37. need a JAVA cross compiler or a built in interpreter.  Embedded systems
  38. (PDA/watch/toaster, etc.) are inherently size and speed restrictive and JAVA
  39. may have a hard time making a dent into some industries which already have
  40. a programming infrastucture in place.
  41.  
  42.  
  43. : Java is not some trendy new smalltime language.  It is major step for the 
  44. : software industry, and it will revolutionise it.  
  45. Of course not.  But I think it will pretty much remain in the internet/intranet
  46. area, which its power will realy shine.  But there is still room out there for
  47. Fortran, assembler, Pascal, Prolog, Lisp, TCL .........  The point being,
  48. I like to try and embrace several different languages rather pick one
  49. and bash the rest, however I like the richness and power I get with C++.
  50. : Java will kill C++.
  51. As the newspaper adds show, not for a while.  Borland and Micro$oft (Symantic
  52. also) are invested (and committed to) heavily in the C++ PC market, and there
  53. are a myriad of C++ compilers for unix systems.  I have not been saying to
  54. discount JAVA (especially for inter/intra net development) but don't discount
  55. C/C++ for lots of other development going on (embedded systems, OS's, etc.).  
  56. : Richard
  57. : bowen.richard.rw@bhp.com.au
  58.  
  59. --
  60. Be seeing you...
  61.  
  62. Curtis Green    |    Software Engineer
  63. curtis@amc.com    |    Applied Microsystems Embedded Systems
  64.                 |    http://www.amc.com
  65. My opinions are |
  66. expressly mine  |    This year Khan escapes Earth on the Botany Bay.
  67. on my own.      |    (Cliff Clavin, 1996)
  68.